Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > Mobile > Mobile Forum > Android - คลิกที่ ปุ่มแล้วมันขึ้น Sorry ต้องแก้ยังไงครับ มันเป็นเพราะอะไรครับ



 

Android - คลิกที่ ปุ่มแล้วมันขึ้น Sorry ต้องแก้ยังไงครับ มันเป็นเพราะอะไรครับ

 



Topic : 103131

Guest




ไฟล์ activity_car_installment.xm
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/myColor"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".Carinstallment" >

   <ScrollView
       android:id="@+id/scrollView1"
       android:layout_width="match_parent"
       android:layout_height="300dp"
       android:layout_marginLeft="1dp"
       android:layout_marginTop="1dp" >

   <LinearLayout
       android:layout_width="298dp"
       android:layout_height="100dp"
       android:layout_alignParentRight="true"
       android:layout_alignTop="@+id/scrollView1"
       android:orientation="vertical" >

       <LinearLayout
           android:id="@+id/linearLayout1"
           android:layout_width="match_parent"
           android:layout_height="wrap_content" >

           <TextView
               android:layout_width="80dp"
               android:layout_height="wrap_content"
               android:text="จำนวนเงิน" />

           <EditText
               android:layout_width="100dp"
               android:layout_height="wrap_content"
               android:layout_weight="1"
               android:inputType="numberDecimal|numberSigned" />

           <TextView
               android:layout_width="80dp"
               android:layout_height="wrap_content"
               android:text="บาท" />
       </LinearLayout>

       <LinearLayout
           android:id="@+id/linearLayout2"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:layout_alignLeft="@+id/linearLayout1"
           android:layout_below="@+id/linearLayout1" >

           <TextView
               android:layout_width="80dp"
               android:layout_height="wrap_content"
               android:text="เงินดาวน์" />

           <EditText
               android:layout_width="100dp"
               android:layout_height="wrap_content"
               android:layout_weight="1"
               android:inputType="numberDecimal" />

           <TextView
               android:layout_width="80dp"
               android:layout_height="wrap_content"
               android:text="บาท" />
       </LinearLayout>

       <LinearLayout
           android:id="@+id/linearLayout4"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:layout_alignLeft="@+id/linearLayout3"
           android:layout_below="@+id/linearLayout3" >

           <TextView
               android:layout_width="80dp"
               android:layout_height="wrap_content"
               android:text="จำวนเดือน" />

           <EditText
               android:layout_width="96dp"
               android:layout_height="wrap_content"
               android:layout_weight="1"
               android:inputType="numberDecimal|numberSigned" />

           <TextView
               android:layout_width="80dp"
               android:layout_height="wrap_content"
               android:layout_alignBottom="@+id/linearLayout4"
               android:layout_toRightOf="@+id/linearLayout4"
               android:text="เดือน" />
       </LinearLayout>

       <LinearLayout
           android:id="@+id/linearLayout3"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:layout_alignLeft="@+id/linearLayout2"
           android:layout_below="@+id/linearLayout2" >

           <TextView
               android:layout_width="80dp"
               android:layout_height="wrap_content"
               android:text="%" />

           <EditText
               android:layout_width="100dp"
               android:layout_height="wrap_content"
               android:layout_weight="1"
               android:inputType="numberDecimal|numberSigned" />

           <TextView
               android:layout_width="80dp"
               android:layout_height="wrap_content"
               android:text="ต่อเดือน" />
       </LinearLayout>

       <Button
           android:id="@+id/button1"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_alignLeft="@+id/linearLayout4"
           android:layout_below="@+id/linearLayout4"
           android:layout_marginLeft="85dp"
           android:layout_marginTop="20dp"
           android:onClick="showTime"
           android:text="@string/calc" />
       <TextView  
			android:id="@+id/tv"
			android:layout_width="fill_parent"
			android:layout_height="wrap_content"
			android:textSize="25sp"
			android:text="TextView."/>
   </LinearLayout>
</ScrollView>
</RelativeLayout>


ไฟล์ carinstallment.java
package car.example.carinstallment;

import java.sql.Date;

import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.TextView;

public class CarInstallment extends Activity {
	

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_car_installment);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.car_installment, menu);
        return true;
    }
    
    
    
}





Tag : Mobile, Android







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2013-11-27 16:40:20 By : jadiloke View : 1001 Reply : 1
 

 

No. 1



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

เอา Error LogCat ตรงสีดำ ๆ ออกมาดูหน่อยครับ






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-11-27 20:37:26 By : mr.win
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : Android - คลิกที่ ปุ่มแล้วมันขึ้น Sorry ต้องแก้ยังไงครับ มันเป็นเพราะอะไรครับ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 02
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่