HorizontalScrollView ScrollView horizontal vertical Android xml example
HorizontalScrollView ScrollView LinearLayout horizontal vertical Android xml basic example and image.
[caption id="attachment_889" align="alignleft" width="200" caption="horizontal scrollview horizontalscrollview android"]
[/caption]
Other sample
[caption id="attachment_889" align="alignleft" width="200" caption="horizontal scrollview horizontalscrollview android"]

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="//schemas.android.com/apk/res/android">
// horizontal and vertical Scrollview
<ScrollView android:id="@+id/ScrollView01"
android:layout_height="135px" android:layout_width="wrap_content"
android:scrollbars="horizontal|vertical">
// HorizontalScrollview
<HorizontalScrollView android:id="@+id/HorizontalScrollView01"
android:layout_height="fill_parent" android:layout_width="wrap_content">
<LinearLayout android:id="@+id/LinearLayout02"
android:layout_width="wrap_content" android:orientation="vertical"
android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:layout_weight="1">
<TextView android:text="red" android:gravity="center_horizontal"
android:background="#aa0000" android:layout_width="200px"
android:layout_height="fill_parent" android:layout_weight="1" />
<TextView android:text="green" android:gravity="center_horizontal"
android:background="#00aa00" android:layout_width="200px"
android:layout_height="fill_parent" android:layout_weight="1" />
<TextView android:text="blue" android:gravity="center_horizontal"
android:background="#0000aa" android:layout_width="200px"
android:layout_height="fill_parent" android:layout_weight="1" />
<TextView android:text="yellow" android:gravity="center_horizontal"
android:background="#aaaa00" android:layout_width="200px"
android:layout_height="fill_parent" android:layout_weight="1" />
</LinearLayout>
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:layout_weight="1">
<TextView android:text="row one" android:textSize="15pt"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1" />
<TextView android:text="row two" android:textSize="15pt"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1" />
<TextView android:text="row three" android:textSize="15pt"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1" />
<TextView android:text="row four" android:textSize="15pt"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
</LinearLayout>
</HorizontalScrollView>
</ScrollView>
</LinearLayout>
Other sample
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="//schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/layout"
android:orientation="vertical" >
<HorizontalScrollView
android:id="@+id/horizontalScrollView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hello world! First TextView" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
</HorizontalScrollView>
</LinearLayout>
396LW NO topic_id
AD
Další témata ....(Topics)
Error: No Launcher activity found!
The launch will only sync the application package on the device!
Android emulator not showing the app
Workaround:
Check AndroidManifest.xml for MAIN and LAUNCHER. MyActivity.java is first Activity what will opened if .apk is installed.
The launch will only sync the application package on the device!
Android emulator not showing the app
Workaround:
Check AndroidManifest.xml for MAIN and LAUNCHER. MyActivity.java is first Activity what will opened if .apk is installed.
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:name="MyActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
If You create new xml file with prefix _ , for example _style.xml and You to clean project (Project->Clean), than package in folder project\gen will deleted with R.java class and new R.java not be created.
For to solving this problem You have to rename file without prefix _ as style.xml or name what You need and rebuild project.
If some ID cannot be resolved or is not a field get error occurence
You have to delete import android.R; in Activity.class if was inserted,
when this error is displayed.
For to solving this problem You have to rename file without prefix _ as style.xml or name what You need and rebuild project.
If some ID cannot be resolved or is not a field get error occurence
You have to delete import android.R; in Activity.class if was inserted,
when this error is displayed.
Co je to AMOLED displej?
AMOLED ( active-matrix organic light-emitting diode ) je zobrazovací technologie pro použití v mobilních zařízeních a televizích. OLED je technologie velmi tenkých displejů, kde organické sloučeniny vytváří elektroluminiscenční materiál a aktivní matice umožňuje přesné adresování jednotlivých pixelů (bodů obrázku).
Od roku 2012, je AMOLED technologie používána v mobilních telefonech , multimediálních přehrávačích a digitálních fotoaparátech, což umožňuje nízkou spotřebu těchto zařízení a zvětšení velikosti displeje (např. až 40 palců).
AMOLED displej se skládá z aktivní matice OLED pixelů, které vytvářejí světlo při elektrické aktivaci a jsou uloženy do Thin Film Transistor (TFT) pole, které slouží, jako řada přepínačů pro ovládání proudu pro každý jednotlivý pixel a tím se dosáhne požadované barvy bodu a snížení spotřeby produ pro pasivní provoz matice OLED.
V TFT sběrnici se používá polykrystalický a amorfní křemík což umožňuje dosáhnout pružnosti a ohebnosti AMOLED displeje.
Video AMOLED display Samsung Omnia II
**VIDEO YOUTUBE
AMOLED ( active-matrix organic light-emitting diode ) je zobrazovací technologie pro použití v mobilních zařízeních a televizích. OLED je technologie velmi tenkých displejů, kde organické sloučeniny vytváří elektroluminiscenční materiál a aktivní matice umožňuje přesné adresování jednotlivých pixelů (bodů obrázku).
Od roku 2012, je AMOLED technologie používána v mobilních telefonech , multimediálních přehrávačích a digitálních fotoaparátech, což umožňuje nízkou spotřebu těchto zařízení a zvětšení velikosti displeje (např. až 40 palců).
AMOLED displej se skládá z aktivní matice OLED pixelů, které vytvářejí světlo při elektrické aktivaci a jsou uloženy do Thin Film Transistor (TFT) pole, které slouží, jako řada přepínačů pro ovládání proudu pro každý jednotlivý pixel a tím se dosáhne požadované barvy bodu a snížení spotřeby produ pro pasivní provoz matice OLED.
V TFT sběrnici se používá polykrystalický a amorfní křemík což umožňuje dosáhnout pružnosti a ohebnosti AMOLED displeje.
Video AMOLED display Samsung Omnia II
**VIDEO YOUTUBE
if , else if, else statement with string as a switch statement in Java example source code.
MainClass.java
MainClass.java
public class MainClass {
public static void main(String[] arg) {
String[] arrayOfString = {"nothing", "Hello", "people"
, "bye-bye", "hello", "world!", "end" };
for (int i = 0; i < arrayOfString.length; i++) {
if (arrayOfString[i].equals("Hello"))
System.out.println(arrayOfString[i]);
else if (arrayOfString[i].equals("people"))
System.out.println(arrayOfString[i]);
else if (arrayOfString[i].equals("hello"))
System.out.println(arrayOfString[i]);
else if (arrayOfString[i].equals("world!"))
System.out.println(arrayOfString[i]);
else // default
System.out.println("Default");
}
}
}
/*
Default
Hello
people
Default
hello
world!
Default
*/
Editace: 2011-10-22 09:17:39
Počet článků v kategorii: 396
Url:horizontalscrollview-scrollview-horizontal-vertical-android-xml-example