User Interface untuk Kamus Digital

User Interface untuk Kamus Digital - Hallo sahabat Kumpulan Aplikasi Android Tercanggih Pilihan Yang Paling Berguna, Pada Artikel yang anda baca kali ini dengan judul User Interface untuk Kamus Digital, kami telah mempersiapkan artikel ini dengan baik untuk anda baca dan ambil informasi didalamnya. mudah-mudahan isi postingan yang kami tulis ini dapat anda pahami. baiklah, selamat membaca.

Judul : User Interface untuk Kamus Digital
link : User Interface untuk Kamus Digital

Baca juga


    User Interface untuk Kamus Digital

    Ini adalah seri lanjutan tentang pembangunan Kamus Digital untuk android.
    Sebelum melanjutkan membaca di halaman ini ada baiknya lihat terlebih dahulu 4 buah class java yang merupakan cikal bakal pembuatan Kamus Digital ini.
    Ke 4 class tersebut antara lain:
    1. KamusDigital.java
    2. KamusDatabase.java
    3. PenghubungData.java
    4. TampilanKata.java
    Untuk membangun Kamus Digital maka di butuhkan 4 buah class java seperti tersebut di atas dan beberapa file XML di bawah ini , sehingga kamus akan namapak di HP sbb:
    Berikut adalah beberapa halaman XML sebagai UI(user interface) dan strings untuk tampilan aplikasi Kamus Digital ini seperti terlihat pada gambar di atas.
    Di  dalam systim android, segala sesuatu yang berhubungan dengan UI(user interface) seperti bentuk dan warna huruf, bentuk dan posisi tombol, warna latar belakang layar, posisi gambar dll, semuanya bernaung di bawah default folder yang bernama res konon res adalah singkatan dari 'resource' kalau benar demikian maka hal itu adalah masuk akal.

    Didalam folder res, masing2 resource di bagi lagi menurut fungsi dan kegunaan-nya masing2:

    drawable adalah tempat tinggal images termasuk foto dan grafik lain-nya
    layout adalah tempat tinggal untuk segala sesuatu yang berhubungan dengan design halaman
    menu adalah untuk segala sesuatu yang berhubungan dengan pembuatan menu
    raw adalah tempat tinggal data mentah yang siap untuk di proses
    values adalah tempat menyimpan tulisan utama yang tampil di layar HP
    xml adalah tempat untuk menyimpan semua hal yang berhubungan dengan meta data

    Selain file tersebut di atas ada satu file lagi yang amat penting bernama AndroidManifest.xml ia tidak tinggal bersama yang lain di dalam folder res karena ia adalah menyangkut application wide.
    Perhatikan struktur file Kamus Digital pada gambar berikut ini

    Silahkan copy kode dari blog ini dan letak-kan masing2 file seperti yang di tunjukan pada gambar di atas.

    drawable ...letakan logo dalam drawable.... pada gambar di atas saya curi logo dari google yang bernama ic_menu_search.png (harus mencuri karena penyakit bawaan yang bernama malas kambuh lagi) silahkan pakai image dan logo sendiri yang penting ukuran-nya 48x48 pixels
    layout ...letakan antara lain hasil.xml, kata.xml, tampilan.xml di dalam folder layout
    menu ...letakan file untuk_menu.xml di dalam folder menu
    raw ...letakan file daftar_kata_kata.txt di dalam folder raw
    values ...letakan file strings.xml di dalam folder values
    xml ...letakan file data_untuk_pencarian.xml di dalam folder xml

     Berikut adalah isi dari file-file tersebut di atas

    isi dari hasil.xml adalah sbb
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Copyright (C)Sintus Projects-->


    <!-- ini utk layar hasil pencarian kata dan arti-nya.
    -->
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="5dp">
    <TextView
    android:id="@+id/kolomKata"
    style="@android:style/TextAppearance.Large"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />
    <TextView
    android:id="@+id/kolomArtinya"
    style="@android:style/TextAppearance.Small"
    android:singleLine="true"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" />
    </LinearLayout>
    Berikut adalah isi dari kata.xml
    <?xml version="1.0" encoding="utf-8"?>
    <!--Copyright (C)Vik Sintus Projects -->
    <!-- utk tampilan layar kata2 yang -->
    <!-- keluar saat ketik pada kotak cari -->
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="5dp">
    <TextView
    android:id="@+id/kolomKata"
    android:textSize="35dp"
    android:textColor="?android:textColorPrimary"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />
    <TextView
    android:id="@+id/kolomArtinya"
    android:textSize="18dp"
    android:textColor="?android:textColorSecondary"
    android:paddingTop="10dp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />
    </LinearLayout>
    Di bawah ini adalah isi dari file tampilan.xml
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    /**
    * Copyright (C) Vik Sintus Projects
    *
    * Segala kelebihan dan kekurangan di luar tanggung jawab pembuat.
    * Di larang memakai kode ini untuk kepentingan komersial tanpa ijin.
    * Silahkan di pakai untuk kepentingan belajar.
    * vik.sintus@gmail.com
    * http://belajar-android-indonesia.blogspot.com
    * Unless required by applicable law or agreed to in writing, this software
    * is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    */
    -->
    <!-- ini utk tampilan layar utama-->
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TextView
    android:id="@+id/tulisanMuncul"
    android:textColor="?android:textColorPrimary"
    android:textSize="17dp"
    android:text="@string/instruksi_utama"
    android:background="@android:drawable/title_bar"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" />
    <ListView
    android:id="@+id/barisDemiBaris"
    android:layout_width="fill_parent"
    android:layout_height="0dp"
    android:layout_weight="1" />
    </LinearLayout>

    berikut adalah isi dari file untuk_menu.xml
    <?xml version="1.0" encoding="utf-8"?>
    <!--Copyright (C)Vik Sintus Projects-->

    <!-- menu utk cari dan TampilanKata.-->
    <menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/cari"
    android:title="@string/menu_cari"
    android:icon="@drawable/ic_menu_search"
    android:showAsAction="ifRoom"
    android:actionViewClass="android.widget.SearchView" />
    </menu>
    Berikut adalah isi dari file strings.xml
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    /*
    ** Copyright Vik Sintus Projects
    **
    */
    -->
    <resources>

    <!-- nama aplikasi. -->
    <string name="nama_aplikasi">Kamus Digital</string>

    <!-- label yg muncul(merek) -->
    <string name="namaLabelNya">KamusDigital</string>

    <!-- tulisan yg muncul pada kotak cari. -->
    <string name="tulisanDiKotakCari">cari kata disini---</string>

    <!-- untuk menu. -->
    <string name="menu_cari">Cari---</string>

    <!-- akan terlihat di search settings utk kode ini. -->
    <string name="artinya">Arti Kata</string>

    <!-- instruksi pada halaman utama. -->
    <string name="instruksi_utama">Silahkan ketik kata yang mau di cari</string>

    <!-- akan di tunjukan di atas hasil pencarian -->
    <plurals name="hasil_pencarian">
    <item quantity="one">%1$d result for \"%2$s\": </item>
    <item quantity="other">%1$d results for \"%2$s\": </item>
    </plurals>

    <!-- ketika pencarian gagal -->
    <string name="tak_ada_hasil">Tak ada \"%s\" dalam database</string>

    </resources>

    di bawah ini adalah isi dari file data_untuk_pencarian.xml
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    /*
    ** Copyright Vik Sintus Projects
    */
    -->

    <!-- berikut adalah setingan tampang kotak search
    utk info lebih lanjut silahkan lihat
    Developer Guide di
    http://developer.android.com/guide/topics/search/
    -->
    <searchable xmlns:android="http://schemas.android.com/apk/res/android"
    android:label="@string/namaLabelNya"
    android:hint="@string/tulisanDiKotakCari"
    android:searchSettingsDescription="@string/artinya"
    android:searchSuggestAuthority="com.vik_sintus.projects.kamusDigital.PenghubungData"
    android:searchSuggestIntentAction="android.intent.action.VIEW"
    android:searchSuggestIntentData="content://com.vik_sintus.projects.kamusDigital.PenghubungData/kamus"
    android:searchSuggestSelection=" ?"
    android:searchSuggestThreshold="1"
    android:includeInGlobalSearch="true"
    >
    </searchable>
    Berikut adalah isi dari file AndroidManifest.xml
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    /*
    * Copyright (C)Vik Sintus Projects
    *
    * Segala kelebihan dan kekurangan di luar tanggung jawab pembuat.
    * Di larang memakai kode ini untuk kepentingan komersial tanpa ijin.
    * Silahkan di pakai untuk kepentingan belajar.
    * vik.sintus@gmail.com
    * http://belajar-android-indonesia.blogspot.com
    * Unless required by applicable law or agreed to in writing, this software
    * is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    *
    *
    */
    -->
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.vik_sintus.projects.kamusDigital"
    android:versionCode="2"
    android:versionName="2.0">

    <uses-sdk android:minSdkVersion="11" />

    <application android:label="@string/nama_aplikasi"
    android:icon="@drawable/ic_dictionary">

    <!-- class utama untuk masuk ke aplikasi. -->
    <activity android:name=".KamusDigital"
    android:launchMode="singleTop">

    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>

    <!-- yang menerima pencarian. -->
    <intent-filter>
    <action android:name="android.intent.action.SEARCH" />
    <!-- kategori tak di perlukan, karena Intent akan menjelaskan-nya pada
    komponen pada class ini
    -->
    </intent-filter>

    <!-- mengarahkan ke meta data pencarian. -->
    <meta-data android:name="android.app.searchable"
    android:resource="@xml/data_untuk_pencarian" />

    </activity>

    <!-- menampilkan arti kata. -->
    <activity android:name=".TampilanKata" />

    <!-- menyediakan perkiraan kata2 apa yang kira2 di cari -->
    <provider android:name=".PenghubungData"
    android:authorities="com.vik_sintus.projects.kamusDigital.PenghubungData" />

    <!-- mengarahkan ke aktivitas cari agar aplikasi menghidupkan kegiatan pencarian. -->
    <meta-data android:name="android.app.default_searchable"
    android:value=".KamusDigital" />

    </application>
    </manifest>

    Sedangkan data model yang sekaligus sebagai isi dari kamus akan di muat di file daftar_kata_kata.txt yang struktur isinya harus seperti berikut, (dimana kata berada di sebelah kiri '-' dan arti kata berada di sebelah kanan). Silahkan membuat kamus sendiri sesuai bahasa yang di kuasai
    . Data seperti berikut ini sering di sebut sebagai 'raw data'(data mentah) karena terlihat amburadul dalam tampilan-nya di .txt file. Tapi kalau kode java dan kode xml-nya semua benar maka akan di olah oleh sistim agar tampil anggun di layar HP. Data berikut adalah hanya contoh, silahkan di ganti dengan kata-kata dalam bahasa yang di ikuasai
    abbey - n. a monastery ruled by an abbot
    abide - v. dwell; inhabit or live in
    apology - n. an expression of regret at having caused trouble for someone
    autonomous - j. existing as an independent entity
    autonomy - n. immunity from arbitrary exercise of authority: political independence
    avid - j. marked by active interest and enthusiasm
    banal - j. repeated too often; over familiar through overuse
    barring - n. the act of excluding someone by a negative vote or veto
    bass - n. the lowest adult male singing voice
    batter - n. a liquid or semiliquid mixture, as of flour, eggs, and milk, used in cooking
    belle - n. a young woman who is the most charming and beautiful of several rivals
    beneficial - j. promoting or enhancing well-being
    bureaucracy - n. non elected government officials
    butt - v. to strike, thrust or shove against
    cabinet - n. persons appointed by a head of state to head executive departments of government and act as official advisers
    caliber - n. a degree or grade of excellence or worth
    coherent - j. marked by an orderly, logical, and aesthetically consistent relation of parts
    coincidence - n. the temporal property of two things happening at the same time
    collapse - v. break down, literally or metaphorically
    colleague - n. an associate that one works with
    collective - j. set up on the principle of collectivism or ownership and production by the workers involved usually under

    the supervision of a government
    cynical - j. believing the worst of human nature and motives; having a sneering disbelief in e.g. selflessness of others
    cynicism - n. a cynical feeling of distrust
    daring - n. the trait of being willing to undertake things that involve risk or danger
    dominant - j. exercising influence or control
    dominate - v. be in control
    domination - n. social control by dominating
    donate - v. give to a charity or good cause
    donor - n. person who makes a gift of property
    drastic - j. forceful and extreme and rigorous
    drought - n. a shortage of rainfall
    dubious - j. open to doubt or suspicion
    dynamics - n. the branch of mechanics concerned with the forces that cause motions of bodies
    earnest - j. characterized by a firm and humorless belief in the validity of your opinions
    esquire - n. a title of respect for a member of the English gentry ranking just below a knight; placed after the name
    external - j. happening or arising or located outside or beyond some limits or especially surface
    extradition - n. the surrender of an accused or convicted person by one state or country to another (usually under the provisions of a statute or treaty)
    extraordinary - j. beyond what is ordinary or usual; highly unusual or exceptional or remarkable
    extravagant - j. unrestrained, especially with regard to feelings
    exuberant - j. joyously unrestrained
    fabulous - j. extremely pleasing
    the mature animal
    frantic - j. excessively agitated; distraught with fear or other violent emotion
    fray - v. wear away by rubbing
    frequency - n. the number of occurrences within a given time period
    fringe - n. a social group holding marginal or extreme views
    frivolous - j. not serious in content or attitude or behavior
    frontier - n. a wilderness at the edge of a settled area of a country
    fundamental - j. being or involving basic facts or principles
    further - v. promote the growth of
    futile - j. producing no result or effect
    grotesque - j. distorted and unnatural in shape or size; abnormal and hideous
    grove - n. a small growth of trees without underbrush
    guise - n. an artful or simulated semblance
    hack - n. a mediocre and disdained writer
    hale - j. exhibiting or restored to vigorous good health
    handwriting - n. something written by hand
    harbor - v. hold back a thought or feeling about
    hazard - n. a source of danger; a possibility of incurring loss or misfortune
    heir - n. a person who is entitled by law or by the terms of a will to inherit the estate of another
    heritage - n. practices that are handed down from the past by tradition
    hilarious - j. marked by or causing boisterous merriment or convulsive laughter
    hollow - j. not solid; having a space or gap or cavity
    homage - n. respectful deference
    hostility - n. violent action that is hostile and usually unprovoked
    humane - j. marked or motivated by concern with the alleviation of suffering
    hysteria - n. excessive or uncontrollable fear
    icon - n. a conventional religious painting in oil on a small wooden panel; venerated in the Eastern Church
    ideology - n. an orientation that characterizes the thinking of a group or nation
    illusion - n. an erroneous mental representation
    invoke - v. cite as an authority; resort to
    involuntary - j. not subject to the control of the will
    involve - v. engage as a participant
    irony - n. incongruity between what might be expected and what actually occurs
    irrational - j. not consistent with or using reason
    irrelevant - j. having no bearing on or connection with the subject at issue
    irresistible - j. impossible to resist; overpowering
    irresponsible - j. showing lack of care for consequences
    judgment - n. the capacity to assess situations or circumstances shrewdly and to draw sound conclusions
    judicial - j. belonging or appropriate to the office of a judge
    juicy - j. lucrative
    junction - n. something that joins or connects
    jurisdiction - n. (law) the right and power to interpret and apply the law
    juror - n. someone who serves (or waits to be called to serve) on a jury
    justification - n. something (such as a fact or circumstance) that shows an action to be reasonable or necessary
    juvenile - j. of or relating to or characteristic of or appropriate for children or young people
    ken - n. range of what one can know or understand
    knit - n. needlework created by interlacing yarn in a series of connected loops using straight eyeless needles or by machine
    lament - v. regret strongly
    landmark - n. the position of a prominent or well-known object in a particular landscape
    landscape - n. an expanse of scenery that can be seen in a single view
    lapse - n. a break or intermission in the occurrence of something
    laureate - n. someone honored for great achievements; figuratively someone crowned with a laurel wreath
    lavish - j. very generous
    lax - j. lacking in rigor or strictness
    legacy - n. (law) a gift of personal property by will
    lifelong - j. continuing through life
    lovable - j. having characteristics that attract love or affection
    lucrative - j. producing a sizeable profit
    ludicrous - j. broadly or extravagantly humorous; resembling farce
    lying - n. the deliberate act of deviating from the truth
    machinery - n. machines or machine systems collectively
    magnet - n. (physics) a device that attracts iron and produces a magnetic field
    mentor - v. serve as a teacher or trusted counselor
    metal - n. any of several chemical elements that are usually shiny solids
    narrator - n. someone who tells a story
    naturally - a. according to nature; by natural means; without artificial help
    naval - j. connected with or belonging to or used in a navy
    necessary - j. absolutely essential
    necessity - n. anything indispensable
    network - n. an interconnected system of things or people
    neutral - j. having no personal preference
    nevertheless - a. despite anything to the contrary (usually following a concession)
    noisy - j. full of or characterized by loud and nonmusical sounds
    nomination - n. the condition of having been proposed as a suitable candidate for appointment or election
    nominee - n. a politician who is running for public office
    norm - n. a standard or model or pattern regarded as typical
    notorious - j. known widely and usually unfavorably
    observatory - n. a building designed and equipped to observe astronomical phenomena
    obsolete - j. no longer in use
    obstruction - n. something that stands in the way and must be circumvented or surmounted
    obtain - v. come into possession of
    occasion - n. a vaguely specified social event
    outrage - n. a feeling of righteous anger
    outrageous - j. grossly offensive to decency or morality; causing horror
    outright - a. without reservation or concealment
    overhaul - v. make repairs, renovations, revisions or adjustments to
    oversee - v. watch and direct
    overthrow - n. the termination of a ruler or institution (especially by force)
    overweight - n. the property of excessive fatness
    pact - n. a written agreement between two states or sovereigns
    pageant - n. a rich and spectacular ceremony
    panic - n. an overwhelming feeling of fear and anxiety
    pantheon - n. all the gods of a religion
    paradox - n. (logic) a statement that contradicts itself
    parallel - j. being everywhere equidistant and not intersecting
    released by the court without imprisonment subject to conditions imposed by the court
    qualify - v. make fit or prepared
    quarterly - a. in three month intervals
    radical - j. markedly new or introducing extreme change
    resistant - j. impervious to being affected
    resort - v. have recourse to
    rural - j. living in or characteristic of farming or country life
    rustic - j. characteristic of the fields or country
    sacrifice - v. kill or destroy
    superb - j. of surpassing excellence
    systematic - j. characterized by order and planning
    tactics - n. the branch of military science dealing with detailed maneuvers to achieve objectives set by strategy
    tangible - j. perceptible by the senses especially the sense of touch
    taxation - n. the imposition of taxes; the practice of the government in levying
    trivial - j. of little substance or significance
    truthful - j. expressing or given to expressing the truth
    turmoil - n. a violent disturbance
    ubiquitous - j. being present everywhere at once
    urban - j. located in or characteristic of a city or city life
    urgency - n. an urgent situation calling for prompt action
    usage - n. the act of using
    utility - n. the quality of being of practical use
    vacuum - n. a region that is devoid of matter
    valid - j. well grounded in logic or truth or having legal force
    variation - n. an artifact that deviates from a norm or standard
    volatile - j. liable to lead to sudden change or violence
    vulnerable - j. capable of being wounded or hurt
    warrant - v. stand behind and guarantee the quality, accuracy, or condition of
    wherever - a. where in the world
    wholly - a. to a complete degree or to the full or entire extent ('whole' is often used informally for 'wholly')
    woo - v. seek someone's favor
    zeal - n. excessive fervor to do something or accomplish some end

    NB. Agar kodenya terlihat agak bersih, silahkan lihat pakai 'view plain' pada kiri atas kotak kode.
    ---------selamat mencoba---------


    Demikianlah Artikel User Interface untuk Kamus Digital

    Sekianlah artikel User Interface untuk Kamus Digital kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.

    Anda sekarang membaca artikel User Interface untuk Kamus Digital dengan alamat link https://aplikasijalantikus.blogspot.com/2012/10/user-interface-untuk-kamus-digital.html

    Related Posts :

    0 Response to "User Interface untuk Kamus Digital"

    Posting Komentar