ورود

View Full Version : نحوه اي تغيير شكل صفحه تماس ورودي و خروجي



darkhah1
یک شنبه 23 فروردین 1394, 10:10 صبح
با يلام اگر كسي در اين خصوص كدي سورسي براي تغيير صفحه تماس دارد زا ممكن است برام بزاريد آخه خيلي مهمه

tux-world
یک شنبه 23 فروردین 1394, 10:58 صبح
یعنی چی؟ اگه میخوایی چیز داشته باشی که مد نظرت هستش باید خود طراحی کنی. کار اسونی نیست و خیلی زمان بر هستش

darkhah1
یک شنبه 23 فروردین 1394, 11:09 صبح
يعني سرورس تغيير شكل تماس ورودي و خروجي وجود نداره؟؟؟

darkhah1
یک شنبه 23 فروردین 1394, 11:17 صبح
خوب من براي اينكار يك apk را ديكامليت كردم حالا چطوري ميتونم error ها را ربطرف كنم

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager.NameNotFoundExce ption;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.Toast;

public class MainActivity extends Activity {

public static final String FULL_VERSION_INTENT = "com.wroclawstudio.screencaller.intent.FULL_VERSION";


public void onCreate(Bundle var1) {
Toast.makeText(this, "apkmania.com", 1).show();
super.onCreate(var1);
this.setContentView(2130903040);
Intent var2 = new Intent();
var2.setAction("com.wroclawstudio.screencaller.intent.FULL_VERSION");
this.getBaseContext().sendBroadcast(var2);

try {
if(this.getPackageManager().getPackageInfo("com.wroclawstudio.screencaller", 0).versionCode < 123) {
Toast.makeText(this, this.getString(2130968579), 1).show();
}
} catch (NameNotFoundException var5) {
var5.printStackTrace();
}

((ImageView)this.findViewById(2131034113)).setOnCl ickListener(new OnClickListener() {
public void onClick(View var1) {
Intent var2 = new Intent("android.intent.action.VIEW");
var2.setData(Uri.parse("market://details?id=com.wroclawstudio.screencaller"));
MainActivity.this.startActivity(var2);
}
});
}
}





<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:background="#ffffffff" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="24.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="6.0">
<RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<ImageView android:id="@id/logo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:src="@drawable/logo" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="2.0" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="2.0">
<TextView android:textSize="17.0sp" android:textStyle="bold" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/title2" android:layout_centerHorizontal="true" />
</RelativeLayout>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="2.0" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="4.0">
<TextView android:textSize="13.0sp" android:textStyle="bold" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/title3" android:layout_centerHorizontal="true" />
</RelativeLayout>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="3.0">
<ImageView android:id="@id/play_logo" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/android_app_on_play_large" android:layout_centerHorizontal="true" android:layout_centerVertical="true" />
</RelativeLayout>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="2.0" />
</LinearLayout>