- 浏览: 933302 次
- 性别:
- 来自: 山西
文章分类
最新评论
-
白小默:
你好 可以提供下源码DEMO吗,不知为何,我导出来的excel ...
jxls 使用模板文件导出生成excel -
zkzqzzz:
博主威武!
让微信二维码扫描您的APK -
zkzqzzz:
感谢博主 原来那些类都不是必须的 或者自己写!!博主真棒 ...
抢红包插件实现原理浅析 -
zkzqzzz:
博主 请问你的其他类在哪里呢?
抢红包插件实现原理浅析 -
zkzqzzz:
其他类在哪呢?
抢红包插件实现原理浅析
点击顶部的标题栏,界面跳转到此博主的关注界面
关注界面,此界面下面的对话和点评以及上面的广播,听众和收听丑了点,没时间了,我今天要把博客弄完,美化的事情交给你们了。
- public class UserInfoActivity extends Activity implements OnItemClickListener{
- private String currentNick;
- private String name;
- private String origtext;
- private String timestamp;
- private DataHelper dataHelper;
- private UserInfo user;
- private MyWeiboSync weibo;
- private Handler handler;
- private AsyncImageLoader asyncImageLoader;
- private UserInfoThread thread;
- private String weiboid;
- private String returnJsonStr;
- private JSONObject dataObj ;
- private ImageView user_headicon;
- private TextView user_nick;
- private TextView user_name;
- private TextView user_origtext;
- private TextView user_time;
- private TextView user_sex;
- private TextView user_age;
- private TextView user_location;
- private TextView user_verifyinfo;
- private Button user_back_btn;
- private Button user_dialog_btn;
- private Button user_message_btn;
- private GridView gridView;
- @Override
- protected void onCreate(Bundle savedInstanceState){
- super.onCreate(savedInstanceState);
- setContentView(R.layout.user_info);
- setUpViews();//设置view
- setUpListeners();//设置listenter
- asyncImageLoader = new AsyncImageLoader();
- dataHelper = new DataHelper(UserInfoActivity.this);
- weibo = new MyWeiboSync();
- List<UserInfo> userList = dataHelper.GetUserList(false);
- SharedPreferences preferences = getSharedPreferences("default_user",Activity.MODE_PRIVATE);
- String nick = preferences.getString("user_default_nick", "");
- if (nick != "") {
- user = dataHelper.getUserByName(nick,userList);
- }
- weibo.setAccessTokenKey(user.getToken());
- weibo.setAccessTokenSecrect(user.getTokenSecret());
- //获取从上一界面传递过来的数据
- Intent intent = getIntent();
- name = intent.getStringExtra("name");
- currentNick = intent.getStringExtra("nick");//昵称
- origtext = intent.getStringExtra("origtext");
- timestamp = intent.getStringExtra("timestamp");
- user_name.setText("@"+name);
- user_origtext.setText(origtext);
- user_time.setText(timestamp);
- handler = new UserInfoHandler();
- thread = new UserInfoThread();
- thread.start();//开启一个线程获取数据
- }
- private void setUpViews(){
- user_headicon = (ImageView) findViewById(R.id.user_headicon);
- user_nick = (TextView) findViewById(R.id.user_nick);
- user_name = (TextView) findViewById(R.id.user_name);
- user_origtext = (TextView) findViewById(R.id.user_origtext);
- user_time = (TextView) findViewById(R.id.user_time);
- user_sex = (TextView) findViewById(R.id.user_sex);
- user_age = (TextView) findViewById(R.id.user_age);
- user_location = (TextView) findViewById(R.id.user_location);
- user_verifyinfo = (TextView) findViewById(R.id.user_verifyinfo);
- user_back_btn = (Button) findViewById(R.id.user_back_btn);
- user_dialog_btn = (Button) findViewById(R.id.user_dialog_btn);
- user_message_btn = (Button) findViewById(R.id.user_message_btn);
- gridView = (GridView)findViewById(R.id.user_grid);
- }
- private void setUpListeners(){
- gridView.setOnItemClickListener(this);
- }
- class UserInfoThread extends Thread {
- @Override
- public void run() {
- returnJsonStr = weibo.getUserInfoByName(weibo.getAccessTokenKey(), weibo.getAccessTokenSecrect(), name);
- //通知handler处理数据
- Message msg = handler.obtainMessage();
- handler.sendMessage(msg);
- }
- }
- class UserInfoHandler extends Handler {
- @Override
- public void handleMessage(Message msg){
- Drawable cachedImage;
- try {
- dataObj = new JSONObject(returnJsonStr).getJSONObject("data");
- cachedImage = asyncImageLoader.loadDrawable(dataObj.getString("head")+"/100",user_headicon, new ImageCallback(){
- @Override
- public void imageLoaded(Drawable imageDrawable,ImageView imageView, String imageUrl) {
- imageView.setImageDrawable(imageDrawable);
- }
- });
- if (cachedImage == null) {
- user_headicon.setImageResource(R.drawable.icon);
- } else {
- user_headicon.setImageDrawable(cachedImage);
- }
- user_nick.setText(dataObj.getString("nick"));
- user_sex.setText(dataObj.getInt("sex")==1?"男":"女");
- if(dataObj.getInt("birth_year")!=0){
- user_age.setText((Calendar.getInstance().get(Calendar.YEAR)-dataObj.getInt("birth_year"))+"岁");
- }
- user_location.setText(dataObj.getString("location"));
- String verifyinfo = dataObj.getString("verifyinfo");
- if(verifyinfo==null||"".equals(verifyinfo)){
- user_verifyinfo.setText("这家伙很懒,没留什么");
- }else{
- user_verifyinfo.setText(verifyinfo);
- }
- final List<String> numsList = new ArrayList<String>();
- numsList.add(dataObj.getString("tweetnum"));
- numsList.add(dataObj.getString("fansnum"));
- numsList.add(dataObj.getString("idolnum"));
- gridView.setAdapter(new GridAdapter(UserInfoActivity.this, numsList));
- } catch (JSONException e) {
- e.printStackTrace();
- }
- }
- }
- class GridAdapter extends BaseAdapter {
- private Context context;
- private LayoutInflater inflater;
- List<String> numList;
- public GridAdapter(Context context, List<String> numList) {
- super();
- this.context = context;
- this.numList = numList;
- this.inflater = LayoutInflater.from(context);
- }
- @Override
- public int getCount() {
- return numList.size();
- }
- @Override
- public Object getItem(int position) {
- return numList.get(position);
- }
- @Override
- public long getItemId(int position) {
- return position;
- }
- @Override
- public View getView(final int position, View convertView, ViewGroup parent){
- convertView = inflater.inflate(R.layout.userinfo_grid_item, null);
- TextView num = (TextView)convertView.findViewById(R.id.userinfo_grid_num);
- TextView title = (TextView)convertView.findViewById(R.id.userinfo_grid_title);
- ImageView image = (ImageView)convertView.findViewById(R.id.userinfo_grid_image);
- switch (position) {
- case 0:
- num.setText(numList.get(0));
- title.setText("广播");
- image.setVisibility(View.VISIBLE);
- break;
- case 1:
- num.setText(numList.get(1));
- title.setText("听众");
- image.setVisibility(View.VISIBLE);
- break;
- case 2:
- num.setText(numList.get(2));
- title.setText("收听");
- break;
- default:
- break;
- }
- return convertView;
- }
- }
- @Override
- public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3){
- switch (position) {
- case 0:
- Intent intent = new Intent(UserInfoActivity.this,TweetsActivity.class);
- intent.putExtra("name", name);
- intent.putExtra("nick",currentNick);
- startActivity(intent);
- break;
- case 1:
- Intent intent2 = new Intent(UserInfoActivity.this,FansActivity.class);
- intent2.putExtra("name", name);
- intent2.putExtra("nick",currentNick);
- startActivity(intent2);
- break;
- case 2:
- Intent intent3 = new Intent(UserInfoActivity.this,IdolActivity.class);
- intent3.putExtra("name", name);
- intent3.putExtra("nick",currentNick);
- startActivity(intent3);
- break;
- default:
- break;
- }
- }
- }
public class UserInfoActivity extends Activity implements OnItemClickListener{ private String currentNick; private String name; private String origtext; private String timestamp; private DataHelper dataHelper; private UserInfo user; private MyWeiboSync weibo; private Handler handler; private AsyncImageLoader asyncImageLoader; private UserInfoThread thread; private String weiboid; private String returnJsonStr; private JSONObject dataObj ; private ImageView user_headicon; private TextView user_nick; private TextView user_name; private TextView user_origtext; private TextView user_time; private TextView user_sex; private TextView user_age; private TextView user_location; private TextView user_verifyinfo; private Button user_back_btn; private Button user_dialog_btn; private Button user_message_btn; private GridView gridView; @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.user_info); setUpViews();//设置view setUpListeners();//设置listenter asyncImageLoader = new AsyncImageLoader(); dataHelper = new DataHelper(UserInfoActivity.this); weibo = new MyWeiboSync(); List<UserInfo> userList = dataHelper.GetUserList(false); SharedPreferences preferences = getSharedPreferences("default_user",Activity.MODE_PRIVATE); String nick = preferences.getString("user_default_nick", ""); if (nick != "") { user = dataHelper.getUserByName(nick,userList); } weibo.setAccessTokenKey(user.getToken()); weibo.setAccessTokenSecrect(user.getTokenSecret()); //获取从上一界面传递过来的数据 Intent intent = getIntent(); name = intent.getStringExtra("name"); currentNick = intent.getStringExtra("nick");//昵称 origtext = intent.getStringExtra("origtext"); timestamp = intent.getStringExtra("timestamp"); user_name.setText("@"+name); user_origtext.setText(origtext); user_time.setText(timestamp); handler = new UserInfoHandler(); thread = new UserInfoThread(); thread.start();//开启一个线程获取数据 } private void setUpViews(){ user_headicon = (ImageView) findViewById(R.id.user_headicon); user_nick = (TextView) findViewById(R.id.user_nick); user_name = (TextView) findViewById(R.id.user_name); user_origtext = (TextView) findViewById(R.id.user_origtext); user_time = (TextView) findViewById(R.id.user_time); user_sex = (TextView) findViewById(R.id.user_sex); user_age = (TextView) findViewById(R.id.user_age); user_location = (TextView) findViewById(R.id.user_location); user_verifyinfo = (TextView) findViewById(R.id.user_verifyinfo); user_back_btn = (Button) findViewById(R.id.user_back_btn); user_dialog_btn = (Button) findViewById(R.id.user_dialog_btn); user_message_btn = (Button) findViewById(R.id.user_message_btn); gridView = (GridView)findViewById(R.id.user_grid); } private void setUpListeners(){ gridView.setOnItemClickListener(this); } class UserInfoThread extends Thread { @Override public void run() { returnJsonStr = weibo.getUserInfoByName(weibo.getAccessTokenKey(), weibo.getAccessTokenSecrect(), name); //通知handler处理数据 Message msg = handler.obtainMessage(); handler.sendMessage(msg); } } class UserInfoHandler extends Handler { @Override public void handleMessage(Message msg){ Drawable cachedImage; try { dataObj = new JSONObject(returnJsonStr).getJSONObject("data"); cachedImage = asyncImageLoader.loadDrawable(dataObj.getString("head")+"/100",user_headicon, new ImageCallback(){ @Override public void imageLoaded(Drawable imageDrawable,ImageView imageView, String imageUrl) { imageView.setImageDrawable(imageDrawable); } }); if (cachedImage == null) { user_headicon.setImageResource(R.drawable.icon); } else { user_headicon.setImageDrawable(cachedImage); } user_nick.setText(dataObj.getString("nick")); user_sex.setText(dataObj.getInt("sex")==1?"男":"女"); if(dataObj.getInt("birth_year")!=0){ user_age.setText((Calendar.getInstance().get(Calendar.YEAR)-dataObj.getInt("birth_year"))+"岁"); } user_location.setText(dataObj.getString("location")); String verifyinfo = dataObj.getString("verifyinfo"); if(verifyinfo==null||"".equals(verifyinfo)){ user_verifyinfo.setText("这家伙很懒,没留什么"); }else{ user_verifyinfo.setText(verifyinfo); } final List<String> numsList = new ArrayList<String>(); numsList.add(dataObj.getString("tweetnum")); numsList.add(dataObj.getString("fansnum")); numsList.add(dataObj.getString("idolnum")); gridView.setAdapter(new GridAdapter(UserInfoActivity.this, numsList)); } catch (JSONException e) { e.printStackTrace(); } } } class GridAdapter extends BaseAdapter { private Context context; private LayoutInflater inflater; List<String> numList; public GridAdapter(Context context, List<String> numList) { super(); this.context = context; this.numList = numList; this.inflater = LayoutInflater.from(context); } @Override public int getCount() { return numList.size(); } @Override public Object getItem(int position) { return numList.get(position); } @Override public long getItemId(int position) { return position; } @Override public View getView(final int position, View convertView, ViewGroup parent){ convertView = inflater.inflate(R.layout.userinfo_grid_item, null); TextView num = (TextView)convertView.findViewById(R.id.userinfo_grid_num); TextView title = (TextView)convertView.findViewById(R.id.userinfo_grid_title); ImageView image = (ImageView)convertView.findViewById(R.id.userinfo_grid_image); switch (position) { case 0: num.setText(numList.get(0)); title.setText("广播"); image.setVisibility(View.VISIBLE); break; case 1: num.setText(numList.get(1)); title.setText("听众"); image.setVisibility(View.VISIBLE); break; case 2: num.setText(numList.get(2)); title.setText("收听"); break; default: break; } return convertView; } } @Override public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3){ switch (position) { case 0: Intent intent = new Intent(UserInfoActivity.this,TweetsActivity.class); intent.putExtra("name", name); intent.putExtra("nick",currentNick); startActivity(intent); break; case 1: Intent intent2 = new Intent(UserInfoActivity.this,FansActivity.class); intent2.putExtra("name", name); intent2.putExtra("nick",currentNick); startActivity(intent2); break; case 2: Intent intent3 = new Intent(UserInfoActivity.this,IdolActivity.class); intent3.putExtra("name", name); intent3.putExtra("nick",currentNick); startActivity(intent3); break; default: break; } } }
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#c0c8d0"
- xmlns:android="http://schemas.android.com/apk/res/android">
- <RelativeLayout android:id="@+id/user_top" android:paddingTop="5.0dip" android:layout_width="fill_parent" android:layout_height="60.0dip" android:layout_alignParentTop="true" android:layout_centerHorizontal="true">
- <ImageView android:id="@+id/user_headicon" android:layout_marginLeft="8.0dip" android:layout_width="45.0dip" android:layout_height="45.0dip" android:layout_alignParentLeft="true"/>
- <TextView android:id="@+id/user_nick" android:layout_marginLeft="5.0dip" android:layout_width="wrap_content" android:layout_toRightOf="@id/user_headicon" android:textColor="#384050"
- android:layout_height="wrap_content"/>
- <TextView android:id="@+id/user_name" android:layout_width="wrap_content" android:layout_marginLeft="10.0dip" android:layout_toRightOf="@id/user_headicon" android:textColor="#687888"
- android:layout_height="wrap_content" android:layout_below="@id/user_nick"/>
- </RelativeLayout>
- <LinearLayout android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_below="@id/user_top">
- <ImageView android:background="#a0b0b0" android:layout_width="fill_parent" android:layout_height="1.0dip" android:scaleType="fitCenter"/>
- <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip">
- <GridView android:gravity="center" android:listSelector="@drawable/listitem_selector" android:id="@+id/user_grid" android:background="@drawable/userinfo_grid_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:numColumns="3"/>
- </RelativeLayout>
- <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:background="@drawable/panel_bg">
- <TextView android:id="@+id/user_sex" android:layout_marginLeft="5.0dip" android:layout_alignParentLeft="true" android:layout_width="wrap_content" android:textSize="12.0sp" android:textColor="#788080"
- android:layout_height="wrap_content"/>
- <TextView android:id="@+id/user_age" android:layout_toRightOf="@id/user_sex" android:layout_width="wrap_content" android:textSize="12.0sp" android:textColor="#788080"
- android:layout_height="wrap_content"/>
- <TextView android:id="@+id/user_location" android:layout_toRightOf="@id/user_age" android:layout_width="wrap_content" android:textSize="12.0sp" android:textColor="#788080"
- android:layout_height="wrap_content"/>
- <TextView android:id="@+id/user_verifyinfo" android:layout_marginLeft="5.0dip" android:layout_alignParentLeft="true" android:layout_below="@id/user_sex" android:layout_width="fill_parent" android:textSize="12.0sp" android:textColor="#788080"
- android:layout_height="wrap_content"/>
- </RelativeLayout>
- <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:background="@drawable/panel_bg">
- <TextView android:text="最新广播:" android:layout_width="fill_parent" android:layout_marginLeft="5.0dip" android:textSize="12.0sp" android:textColor="#788080"
- android:layout_height="wrap_content"/>
- <TextView android:id="@+id/user_time" android:layout_width="wrap_content" android:layout_marginLeft="3.0dip" android:layout_marginTop="10.0dip" android:textSize="8.0sp" android:textColor="#788080"
- android:layout_height="wrap_content" android:layout_alignParentRight="true"/>
- <TextView android:id="@+id/user_origtext" android:layout_width="fill_parent" android:layout_marginLeft="5.0dip" android:textSize="12.0sp" android:textColor="#788080"
- android:layout_height="wrap_content" android:layout_below="@id/user_time" android:layout_alignParentLeft="true"/>
- </RelativeLayout>
- </LinearLayout>
- <RelativeLayout android:layout_width="fill_parent" android:layout_height="40.0dip" android:layout_alignParentBottom="true">
- <Button android:id="@+id/user_back_btn" android:layout_width="40.0dip" android:drawableTop="@drawable/btn_back_selector" android:background="@drawable/bottom_back_bg"
- android:layout_height="40.0dip" android:layout_alignParentLeft="true"/>
- <LinearLayout android:id="@+id/widget41" android:layout_marginLeft="60.0dip" android:layout_alignParentBottom="true"
- android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_toRightOf="@id/user_back_btn">
- <ImageView android:background="#f8f8f8" android:layout_width="1.0dip" android:layout_height="20.0dip" android:scaleType="fitCenter"/>
- <Button android:id="@+id/user_dialog_btn" android:layout_width="wrap_content" android:background="@drawable/bottom_bar_bg"
- android:layout_height="wrap_content" android:text="对话"/>
- <ImageView android:background="#f8f8f8" android:layout_width="1.0dip" android:layout_height="20.0dip" android:scaleType="fitCenter"/>
- <Button android:id="@+id/user_message_btn" android:layout_width="wrap_content" android:background="@drawable/bottom_bar_bg"
- android:layout_height="wrap_content" android:text="点评"/>
- </LinearLayout>
- <Button android:id="@+id/user_tohome_btn" android:layout_width="40.0dip"
- android:layout_height="40.0dip" android:drawableTop="@drawable/btn_home_selector" android:background="@drawable/bottom_home_bg" android:layout_alignParentRight="true"/>
- </RelativeLayout>
- </RelativeLayout>
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#c0c8d0" xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:id="@+id/user_top" android:paddingTop="5.0dip" android:layout_width="fill_parent" android:layout_height="60.0dip" android:layout_alignParentTop="true" android:layout_centerHorizontal="true"> <ImageView android:id="@+id/user_headicon" android:layout_marginLeft="8.0dip" android:layout_width="45.0dip" android:layout_height="45.0dip" android:layout_alignParentLeft="true"/> <TextView android:id="@+id/user_nick" android:layout_marginLeft="5.0dip" android:layout_width="wrap_content" android:layout_toRightOf="@id/user_headicon" android:textColor="#384050" android:layout_height="wrap_content"/> <TextView android:id="@+id/user_name" android:layout_width="wrap_content" android:layout_marginLeft="10.0dip" android:layout_toRightOf="@id/user_headicon" android:textColor="#687888" android:layout_height="wrap_content" android:layout_below="@id/user_nick"/> </RelativeLayout> <LinearLayout android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_below="@id/user_top"> <ImageView android:background="#a0b0b0" android:layout_width="fill_parent" android:layout_height="1.0dip" android:scaleType="fitCenter"/> <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip"> <GridView android:gravity="center" android:listSelector="@drawable/listitem_selector" android:id="@+id/user_grid" android:background="@drawable/userinfo_grid_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:numColumns="3"/> </RelativeLayout> <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:background="@drawable/panel_bg"> <TextView android:id="@+id/user_sex" android:layout_marginLeft="5.0dip" android:layout_alignParentLeft="true" android:layout_width="wrap_content" android:textSize="12.0sp" android:textColor="#788080" android:layout_height="wrap_content"/> <TextView android:id="@+id/user_age" android:layout_toRightOf="@id/user_sex" android:layout_width="wrap_content" android:textSize="12.0sp" android:textColor="#788080" android:layout_height="wrap_content"/> <TextView android:id="@+id/user_location" android:layout_toRightOf="@id/user_age" android:layout_width="wrap_content" android:textSize="12.0sp" android:textColor="#788080" android:layout_height="wrap_content"/> <TextView android:id="@+id/user_verifyinfo" android:layout_marginLeft="5.0dip" android:layout_alignParentLeft="true" android:layout_below="@id/user_sex" android:layout_width="fill_parent" android:textSize="12.0sp" android:textColor="#788080" android:layout_height="wrap_content"/> </RelativeLayout> <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:background="@drawable/panel_bg"> <TextView android:text="最新广播:" android:layout_width="fill_parent" android:layout_marginLeft="5.0dip" android:textSize="12.0sp" android:textColor="#788080" android:layout_height="wrap_content"/> <TextView android:id="@+id/user_time" android:layout_width="wrap_content" android:layout_marginLeft="3.0dip" android:layout_marginTop="10.0dip" android:textSize="8.0sp" android:textColor="#788080" android:layout_height="wrap_content" android:layout_alignParentRight="true"/> <TextView android:id="@+id/user_origtext" android:layout_width="fill_parent" android:layout_marginLeft="5.0dip" android:textSize="12.0sp" android:textColor="#788080" android:layout_height="wrap_content" android:layout_below="@id/user_time" android:layout_alignParentLeft="true"/> </RelativeLayout> </LinearLayout> <RelativeLayout android:layout_width="fill_parent" android:layout_height="40.0dip" android:layout_alignParentBottom="true"> <Button android:id="@+id/user_back_btn" android:layout_width="40.0dip" android:drawableTop="@drawable/btn_back_selector" android:background="@drawable/bottom_back_bg" android:layout_height="40.0dip" android:layout_alignParentLeft="true"/> <LinearLayout android:id="@+id/widget41" android:layout_marginLeft="60.0dip" android:layout_alignParentBottom="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_toRightOf="@id/user_back_btn"> <ImageView android:background="#f8f8f8" android:layout_width="1.0dip" android:layout_height="20.0dip" android:scaleType="fitCenter"/> <Button android:id="@+id/user_dialog_btn" android:layout_width="wrap_content" android:background="@drawable/bottom_bar_bg" android:layout_height="wrap_content" android:text="对话"/> <ImageView android:background="#f8f8f8" android:layout_width="1.0dip" android:layout_height="20.0dip" android:scaleType="fitCenter"/> <Button android:id="@+id/user_message_btn" android:layout_width="wrap_content" android:background="@drawable/bottom_bar_bg" android:layout_height="wrap_content" android:text="点评"/> </LinearLayout> <Button android:id="@+id/user_tohome_btn" android:layout_width="40.0dip" android:layout_height="40.0dip" android:drawableTop="@drawable/btn_home_selector" android:background="@drawable/bottom_home_bg" android:layout_alignParentRight="true"/> </RelativeLayout> </RelativeLayout>
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="center" android:paddingTop="3.0dip" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <TextView android:id="@+id/userinfo_grid_num" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#586068"/>
- <TextView android:id="@+id/userinfo_grid_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#98a0a0"/>
- </LinearLayout>
- <ImageView android:id="@+id/userinfo_grid_image" android:src="#d0d0d8" android:visibility="invisible" android:layout_width="1.0dip" android:layout_height="30.0dip" android:layout_marginLeft="30.0dip"/>
- </LinearLayout>
- http://helloandroid.iteye.com/blog/1136746
发表评论
-
Android客户端代码保护技术-完整性校验
2018-01-08 17:10 1249由于Android系统固有的缺陷、Android应用分发 ... -
android开发中手动v2签名实现方法
2018-01-08 10:31 999用v2签名前要进行v1签名或zipalign。 1. z ... -
webview支持LocalStorage本地存储
2017-03-31 10:30 1359//允许JavaScript执行 ... -
七步配置phonegap+cordova+ionic开发环境
2016-12-19 16:21 690本文讲的是Android混合 ... -
梆梆加固破解
2016-10-13 09:01 1500本文假设你已经使用过梆梆加固,手头至少有个一个通过梆梆加固后 ... -
android zxing 扫描二维码 横屏转竖屏
2016-09-14 15:41 0Zxing 竖屏切换 Android 在google上下 ... -
封装Volley使Volley的每个请求都自动保存和发送Cookie
2016-09-14 10:57 0思路很简单,每次请求获取到服务器返回的response就解 ... -
Android二维码ZXing扫描区域大小的调整,提高扫描速度
2016-09-14 10:48 2637Zxing本身默认的扫图区域最大只有 360*480 ... -
解决Android二维码扫描ZXing竖屏拉伸变长闪退扫描区域小等问题
2016-09-14 10:42 1222Android 基于google Zxing实现二维码、条形 ... -
Android平台下利用zxing实现二维码开发
2016-09-14 09:25 475现在走在大街小巷都能看到二维码,而且最近由于项目需要,所以研 ... -
Zxing扫描二维码
2016-09-14 09:24 653摘要 android Zxing扫描二维码 横竖屏 ... -
Android 基于google Zxing实现二维码、条形码扫描,仿微信二维码扫描效果
2016-09-14 09:18 499转载请注明出处:http://blog.csdn.net/x ... -
React Native应用部署/热更新-CodePush最新集成总结
2016-08-02 11:06 563本文出自《React Native学习笔记》系列文章。 ... -
让微信二维码扫描您的APK
2016-07-27 11:26 1496二维码深入人心,很多App都在官网挂出了可以扫描下载apk的 ... -
Activity类的runOnUiThread方法
2016-07-22 10:40 764[javascript] view plain c ... -
Can't create handler inside thread that has not called Looper.prepare()
2016-07-22 10:24 625错误信息:在Android开发中,如果在一个Thread中启 ... -
Android编程之解决android-support-v4打包问题
2016-07-21 09:27 547如果工程引入了android-support-v4的jar类 ... -
Android 编程下的代码混淆之(android-support-v4.jar)
2016-07-21 09:24 390项目在代码混淆过程中如果引用了第三方 Jar 包,需要在混淆 ... -
phoneGap可行性分析
2016-07-20 16:25 5091 移动应用现状 移动应用产品往往常 ... -
梆梆SDKs详细分析(1) - 防界面劫持SDK
2016-07-20 10:23 744前言 前段时间,国外知名的安全公司fireeye发 ...
相关推荐
腾讯人脸识别多版本接口文档,需要的下载,本文只负责转摘,不做商业用途,需要的可以下载,里面涵盖腾讯人脸的多个文档,这个是我之前做的腾讯人脸项目所用到的,腾讯官方只给到在线版的,我就自己弄了个PDF
Eclipse中用SWT和JFace开发入门-转摘 .doc
android 布局参数中文注释说明 两张图片截图,仅对linerlayout 及RelativeLayout参数说明! 网络转摘!仅供学习!
有很多的朋友给自己硬盘新建分区都喜欢用第三方软件,我想原因是在XP系统下只能在安装系统时才能进行分区,一旦系统做好之后要想新建分区就必须...本文转摘自『蓝派网』http://www.lan27.com/Article/201101/10965.htm
公司控制权之争及公司股权设计模式转摘.doc
新零售时代,小卖家如何迅速做出销量(转摘).zip
完全平方公式变形的应用练习题_2(转摘).doc
新零售时代,小卖家如何迅速做出销量(转摘).doc
一、开发环境:pb11.2 8669 二、pb的webservice程序必须置于英文目录下,含中文路径时部署会出错; 三、代码只要改一个地方: n_webservice对象的of_retrieve函数中 sqlca.logpass设置为你测试数据库的sa对应密码即可 四...
新零售时代,小卖家如何迅速做出销量(转摘)-知识杂货店.doc
本站声明:此文章来源于网络,如果未署名,可能因为此文被转摘多次,原作者不详。本站转载时稍作整理。如果原作者认为侵权,请联系我。我将在第一时间按其要求做出处理,并消除影响。
华为从事通信网络技术与产品的研究、开发、生产与销售,是中国电信市场的主要供应商之一,并已成功进入全球电信市场。每年华为都要在各大高校招聘大批的应界生,特别是华中科技大学。 下面据说是华为公司的笔试题...
很多可能在转摘过程中失真或未经验证就被转摘,真正使用时却不行,也由此决定自己全方位试验一下,努力还是没有白费,虽然最终得出的结果是很简单的,但其过程对于一个新学AJAX的人来说,真是挺累。欢迎您在使用过程...
这个是我从网上找到的资料,现在共享给大家,希望能帮助到大家。
转摘:Microsoft Office Access(前名 Microsoft Access)是由微软发布的关联式数据库管理系统。它结合了 Microsoft Jet Database Engine 和 图形用户界面两项特点,是 Microsoft Office的成员之一。 Access能够...
ASP.NET2.0+SQL Server2005构建多层应用, 从网上转摘一篇文章
在当今快速的开发环境中,应用程序的测试总是处于次要地位。DataFactory是一种强的的数据产生器,它允许开发人员和QA很容易产生百万行有意义的正确的测试数据库, DataFactory 首先读取一个数据库方案,用户随后点击...
本文为转摘!!!!!!!!!!
移动端开发(转摘jtyjty99999/mobileTech) ECMA-262,第 5 版 外链(即ES5) ECMAScript5.1中文版 外链(很详细教程) 前端技能汇总 外链(朴灵git) 在线预览word文档 颜色互转 MIME 类型 常用算法 async和defer...
除非特别声明,原文版权归作者所有,如有转摘请注明原作者以及译者(FPGA技术网)信息。本译文会不断更新,要获得本译文的最新版本请查看本文的在线版本SystemVerilog 3.1a 语言参考手册。 由于时间及译者水平所限,...