Hirdetés
- SSD kibeszélő
- Amlogic S905, S912 processzoros készülékek
- A Windows 11 nem akarja ránk erőltetni az AI applikációkat – vagy mégis?
- OLED monitor topic
- NVIDIA GeForce RTX 5070 / 5070 Ti (GB205 / 203)
- Milyen egeret válasszak?
- Milyen CPU léghűtést vegyek?
- Milyen alaplapot vegyek?
- Vezeték nélküli fülhallgatók
- Vezetékes FEJhallgatók
Új hozzászólás Aktív témák
-
domel
tag
válasz
bucsupeti
#3903
üzenetére
Az sem mindegy?
MainActivity.javapackage com.example.csabi.rohadjmeg;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
FragmentTransaction valami;
FragmentTransaction ftc = getSupportFragmentManager().beginTransaction();
BlankFragment fragmentDemo = BlankFragment.newInstance(5, "my title");
ftc.replace(R.id.tvFragText, fragmentDemo);
ftc.commit();
}
}BlankFragment.java
package com.example.csabi.rohadjmeg;
import android.os.Bundle;
import android.support.v4.app.Fragment;
public class BlankFragment extends Fragment {
// Creates a new fragment given an int and title
// DemoFragment.newInstance(5, "Hello");
public static BlankFragment newInstance(int someInt, String someTitle) {
BlankFragment fragmentDemo = new BlankFragment();
Bundle args = new Bundle();
args.putInt("someInt", someInt);
args.putString("someTitle", someTitle);
fragmentDemo.setArguments(args);
return fragmentDemo;
}
}Activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<fragment
android:name="com.example.csabi.rohadjmeg.BlankFragment"
android:id="@+id/fooFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
Fragment_blank.xml<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="200dp"
android:layout_height="200dp" >
<TextView
android:id="@+id/tvFragText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="" />
</RelativeLayout>
Új hozzászólás Aktív témák
- SSD kibeszélő
- Gyúrósok ide!
- Amlogic S905, S912 processzoros készülékek
- Battlefield 6
- Le Mans Ultimate
- Sütés, főzés és konyhai praktikák
- Nintendo Switch 2
- Lakáshitel, lakásvásárlás
- Kerékpárosok, bringások ide!
- A Windows 11 nem akarja ránk erőltetni az AI applikációkat – vagy mégis?
- További aktív témák...
- AMD Radeon RX 7600 8GB OC HIBÁTLAN!!
- Hibátlan 2+ Év Garancia! GIGABYTE GeForce RTX 4060 EAGLE OC 8GB
- AZONNAL KÉSZLETRŐL! AMD Ryzen 7 9800X3D 64GB 6000MHz RAM 2TB Gen4 SSD RTX 5090 32GB GDDR7 1200W
- AZONNAL KÉSZLETRŐL! Intel Core i5 14600K 64GB 6000MHz RAM 2TB Gen4 SSD RTX 5060 8GB FSP 750W
- AZONNAL KÉSZLETRŐL! Intel Core i5 14600K 32GB 6000MHz RAM 2TB Gen4 SSD RTX 5060 8GB FSP 750W
- Apple iPhone 16 Pro Max Desert Titanium Titán dizájn, Pro kamera, 120 Hz ProMotion,90%,3 hó gari
- Dell Latitude 5420 14" Touchscreen i5-1135G7 16GB 512GB 1 év garancia
- ÁRGARANCIA! Épített KomPhone Ultra 9 285K 32/64GB RAM RX 9070 XT 16GB GAMER PC termékbeszámítással
- Samsung Galaxy S23+ / 8/256GB / Kártyafüggetlen / 12Hó Garancia
- Apple Watch Series 7 41mm GPS,Újszerű,Dobozával,12 hónap garanciával
Állásajánlatok
Cég: Laptopszaki Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


