Advertisement
RAHUL_CHAUDHARY12345

CHAMANTEAMVIP

Feb 9th, 2023 (edited)
721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. require "import"
  2. import "android.app.*"
  3. import "android.os.*"
  4. import "android.widget.*"
  5. import "android.view.*"
  6.  
  7.  
  8. layout={
  9.   LinearLayout;
  10.   layout_width="fill";
  11.   layout_height="fill";
  12.   orientation="vertical";
  13.   {
  14.     LinearLayout;
  15.     layout_width="match_parent";
  16.     layout_height="100dp";
  17.     gravity="center";
  18.     {
  19.       TextView;
  20.       textSize="24sp";
  21.       text="NALLA HUMAN";
  22.       id="mTextView1";
  23.     };
  24.   };
  25.   {
  26.     LinearLayout;
  27.     layout_width="match_parent";
  28.     gravity="center";
  29.     layout_height="match_parent";
  30.     orientation="vertical";
  31.     {
  32.       Button;
  33.       id="mButton1";
  34.       text="TEST1";
  35.     };
  36.     {
  37.       Button;
  38.       id="mButton2";
  39.       text="test2";
  40.     };
  41.     {
  42.       Button;
  43.       id="mButton3";
  44.       text="TEST3";
  45.     };
  46.   };
  47. };
  48.  
  49.  
  50. activity.setContentView(loadlayout(layout))
  51.  
  52.  
  53. function mButton2.onClick()
  54. print("working")
  55. end
  56.  
  57.  
  58.  
  59.  
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement